const express = require('express');
const app = express();
const axios =require('axios');
const url='https://www.easy-mock.com/mock/5cea2ecf46a5bf3b03eed03e/start'
app.use(express.static('static'));
app.engine('html', require('express-art-template'));
app.set('view options', {
    debug: process.env.NODE_ENV !== 'production'
});
app.get('/',function(req,res){
    axios.get(url).then(data=>{
        res.render('index.html',{data:data.data})
    })
    
})
app.listen(8080)